Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

357
Visualizações
Input type "datetime-local" keep default value highlight using min attribute

I am working on a datetime picker input in Angular using the input type: "datetime-local". It works well and the input looks like that:

enter image description here

I have already set the minimum attribute to the now date and a default value according to my database.

enter image description here

Here you can see the default date value as: "21/12/2021 10:45". But opening the input the "selected" value is the minimum date as: "29/12/2021 10:45".

My question is: How can I highlight the current value and not the minimum?

My HTML input:

<input matInput formControlName="datetime" [min]="getNowDate()" type="datetime-local" [placeholder]="_input.short_gui_name | titlecase">
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda